module.exports = {
    router : {
        linkActiveClass:"active",
        extendRoutes(routes,resolve){
            //清除默认路由
            routes.splice(0)
            routes.push(...[{
                path:"/",
                component:resolve(__dirname,'pages/layout/'),
                children:[{
                    path:"",
                    name:"home",
                    component:resolve(__dirname,"pages/home/home.vue")
                },{
                    path:"/login",
                    name:"login",
                    component:resolve(__dirname,"pages/login/index.vue")
                },{
                    path:"/register",
                    name:"register",
                    component:resolve(__dirname,"pages/login/index.vue")
                },{
                    path:"/profile/:username",
                    name:"profile",
                    component:resolve(__dirname,"pages/profile/index.vue")
                },{
                    path:"/sitting",
                    name:"sitting",
                    component:resolve(__dirname,"pages/sitting/index.vue")
                },{
                    path:"/editor",
                    name:"editor",
                    component:resolve(__dirname,"pages/editor/index.vue")
                },{
                    path:"/article:slug",
                    name:"article",
                    component:resolve(__dirname,"pages/article/index.vue")
                }]
            }])
        }
    },
    plugins:[
        '@/plugins/request.js'
    ]
}